﻿<%@ Page Title="" Language="C#" MasterPageFile="../Share/Default.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Field_Default" %>

<%@ Register src="../Control/FieldMenu.ascx" tagname="FieldMenu" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="body" Runat="Server">
    <table>
    <tr>
        <td>选择你要查看实体类:</td>
        <td><asp:DropDownList ID="ModelId" runat="server"></asp:DropDownList></td>
        <td><asp:Button ID="view" Text="view" runat="server" onclick="view_Click" /></td>
    </tr>
    </table>
    <asp:GridView ID="gv" runat="server" SkinID="gvList">
    <Columns>
    <asp:TemplateField>
                <ItemTemplate>
                    <img src="../../images/edit.gif" title="编辑" />
                    <a href="edit.aspx?id=<%#Eval("FieldId") %>">编辑</a>
                </ItemTemplate>
                <HeaderTemplate>编辑</HeaderTemplate>
                
            </asp:TemplateField>
             <asp:TemplateField>
                <ItemTemplate>
                    <img src="../../images/delete.gif" title="编辑" />
                    <a onclick="return confirm('确定删除Field:<%#Eval("FieldName") %>')" href="delete.aspx?id=<%#Eval("FieldId") %>">删除</a>
                </ItemTemplate>
                <HeaderTemplate>删除</HeaderTemplate>
                
            </asp:TemplateField>
    </Columns>
    </asp:GridView>
</asp:Content>

